#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/**
 *   font应该一致。未设置需添加：
 [_attributedString addAttribute:NSFontAttributeName value:font range:NSMakeRange(0, _attributedString.length)];
 */
@interface NSAttributedString (Category)

/// 返回label高度
- (CGFloat)getLabelHeightWithWidth:(CGFloat)width;

/// 返回label高度，最小高度为minLabelheight
- (CGFloat)getLabelHeightWithMinLabelHeight:(CGFloat)minLabelheight Width:(CGFloat)width;

/// 返回label对比minLabelheight增加高度（大于0）
- (CGFloat)getGainedLabelHeightWithMinLabelHeight:(CGFloat)minLabelheight Width:(CGFloat)width;
/// 返回cell的高度,minLabelheight为label的最小高度，minCellheight为cell的最小高度
- (CGFloat)getCellHeightWithMinCellHeight:(CGFloat)minCellheight MinLabelHeight:(CGFloat)minLabelheight Width:(CGFloat)width;

/// 左右字体/颜色格式相同，中间不同
+ (NSMutableAttributedString *)getAttributedTextWithLeftNormalText:(NSString *)leftText middle:(NSString *)middleText rightNormalText:(NSString *)rightText normalTextColor:(UIColor *)normalTextColor normalFont:(UIFont *)normalFont middleTextColor:(UIColor *)middleTextColor middleFont:(UIFont *)middleFont;


@end
